﻿// MIT License
//
// Copyright (c) 2021-present zuohuaijun, Daming Co.,Ltd and Contributors
//
// 电话/微信：18020030720 QQ群1：87333204 QQ群2：252381476

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Net.InformationPlatform.Service.Product.Dto.T100;
public class AXMT500
{
    public string key { get; set; }

    public string type { get; set; }

    /// <summary>
    /// 用户数据
    /// </summary>
    public HostClass host { get; set; }

    public ServiceClass service { get; set; }

    public DatakeyClass datakey { get; set; }

    public Payload payload { get; set; }

}

public class HostClass
{

    public string prod { get; set; }

    public string lang { get; set; }

    /// <summary>
    /// 用户账号
    /// </summary>
    public string acct { get; set; }

    public string timestamp { get; set; }
}

public class ServiceClass
{
    /// <summary>
    /// 服务名
    /// </summary>
    public string name { get; set; }

    /// <summary>
    /// T100测试区toptst，T100正式区填topprd
    /// </summary>
    public string id { get; set; }
}

public class DatakeyClass
{
    /// <summary>
    /// 企业ent
    /// </summary>
    public string EntId { get; set; }

    /// <summary>
    /// 据点
    /// </summary>
    public string CompanyId { get; set; }
}

public class Payload
{
    /// <summary>
    /// 订单信息
    /// </summary>
    public StdData std_data { get; set; }

}

public class StdData
{
    /// <summary>
    /// 订单信息
    /// </summary>
    public Parameter parameter { get; set; }

}

public class Parameter
{
    /// <summary>
    /// 订单单号
    /// </summary>
    public string xmdadocno { get; set; }

    /// <summary>
    /// 客户编号
    /// </summary>
    public string xmda004 { get; set; }

    /// <summary>
    /// 预付收款发票开立方式
    /// </summary>
    public string xmda039 { get; set; }

    /// <summary>
    /// 订单日期
    /// </summary>
    public string xmdadocdt { get; set; }

    /// <summary>
    /// 业务人员
    /// </summary>
    public string xmda002 { get; set; }

    /// <summary>
    /// 业务部门
    /// </summary>
    public string xmda003 { get; set; }

    /// <summary>
    /// 收款条件
    /// </summary>
    public string xmda009 { get; set; }

    /// <summary>
    /// 交易条件
    /// </summary>
    public string xmda010 { get; set; }

    /// <summary>
    /// 税种
    /// </summary>
    public string xmda011 { get; set; }

    /// <summary>
    /// 发票类型
    /// </summary>
    public string xmda035 { get; set; }

    /// <summary>
    /// 币种
    /// </summary>
    public string xmda015 { get; set; }

    /// <summary>
    /// 取价方式
    /// </summary>
    public string xmda017 { get; set; }

    /// <summary>
    /// 账款客户
    /// </summary>
    public string xmda021 { get; set; }

    /// <summary>
    /// 收款客户
    /// </summary>
    public string xmda022 { get; set; }

    /// <summary>
    /// 付款方式
    /// 0：无预付款；
    ///1：微信；
    ///2：支付宝；
    /// </summary>
    public string xmdb_type { get; set; }

    /// <summary>
    /// 付款金额
    /// </summary>
    public int price { get; set; }

    /// <summary>
    /// 电商订单单号
    /// </summary>
    public string xmdaud010 { get; set; }

    /// <summary>
    /// 电商订单来源
    /// </summary>
    public string xmdaud009 { get; set; }

    /// <summary>
    /// 来源单号
    /// </summary>
    public string xmda008 { get; set; }

    /// <summary>
    /// 客户订购单号
    /// </summary>
    public string xmda033 { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string xmda071 { get; set; }

    /// <summary>
    /// 资料所有者
    /// </summary>
    public string xmdaownid { get; set; }

    /// <summary>
    /// 订单信息
    /// </summary>
    public List<DetailXmdc> detail_xmdc { get; set; }

}

public class DetailXmdc
{
    /// <summary>
    /// 项次
    /// </summary>
    public int xmdcseq { get; set; }

    /// <summary>
    /// 料号
    /// </summary>
    public string xmdc001 { get; set; }

    /// <summary>
    /// 订购量
    /// </summary>
    public int xmdc007 { get; set; }

    /// <summary>
    /// 单价
    /// </summary>
    public double xmdc015 { get; set; }

    /// <summary>
    /// 连杆长度
    /// </summary>
    public string xmdcud001 { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string xmdc050 { get; set; }

    /// <summary>
    /// 长备注
    /// </summary>
    public string ooff013 { get; set; }


}
/// <summary>
/// 调用接口返回值
/// </summary>
public class AXMT500Out
{ 

    public string srvver   {  get;  set;  } 
    public string srvcode   {  get;  set;  } 
    public string datakey   {  get;  set;  } 
    public PayloadClass payload   {  get;  set;  } 


}

/*public class PayloadClass { 


}
*/
public class PayloadClass { 

    public StdDataClass std_data { get; set; }

    public ParameterClass parameter { get; set; }
}

public class StdDataClass { 
    public ExecutionClass execution { get; set; }

} 

public class ParameterClass { 

    /// <summary>
    /// t100订单号
    /// </summary>
    public string docno { get; set; } = string.Empty;
}

public class ExecutionClass
{ 
    public string code { get; set; }

    public string sql_code { get; set; }
     
    public string description { get; set; }

}